import request from "../index";

export default class FormDepotRequest {
  // 获取表单信息仓库
  public static getFormDepot(params) {
    return request({
      url: "/formDepot",
      params,
      method: "get",
    });
  }
  // 创建表单仓库
  public static addFormDepot(data) {
    return request({
      url: "/formDepot",
      data,
      method: "post",
    });
  }
  // 修改表单信息仓库
  public static editFormDepot(data) {
    return request({
      url: "/formDepot",
      data,
      method: "put",
    });
  }
  // 删除表单仓库
  public static deleteFormDepot(params) {
    return request({
      url: "/formDepot",
      params,
      method: "delete",
    });
  }
  public static getFormRepoList(params) {
    return request({
      url: "/formDepot/list",
      params,
      method: "get",
    });
  }
}
